How to : assign a shortcut name to a snippet >如何:为代码段指定快捷方式名称
To change the shortcut name for a snippet 更改代码段的快捷方式名称
There are two ways to find the shortcut name for a code snippet 查找代码段的快捷键名称的方法有两种:
In the case of an installed application , it is also used to specify the shortcut name on the start menu 对于安装的应用程序,它还用于指定“开始”菜单上的快捷方式名称。
The shortcut name for an intellisense code snippet is changed by modifying the xml . snippet file Intellisense代码段的快捷方式名称是通过修改xml . snippet文件来进行更改的。
This name is used for the shortcut name on the start menu and is part of the name that appears in the 此名称用作“开始”菜单上的快捷方式名称,而且是“添加/删除程序”对话框中所显示的名称的一部分。
Type the first few characters of the shortcut name for the snippet in the code editor , followed by a question mark and tab 在“代码编辑器”中键入代码段的快捷键名称的头几个字符,然后键入一个问号并按tab键。
This name is used for the shortcut name on the start menu and is part of the name that appears in the add remove programs dialog 此名称用于“开始”菜单中的快捷名称,并且是“添加/删除程序”对话框中显示的名称的一部分。
Shortcut names provide a way for you to insert intellisense code snippets into your code by typing a shortcut name and then pressing tab 快捷方式名称提供了在代码中插入intellisense代码段的方法,具体操作为:键入快捷方式名称,然后按tab 。